#!/bin/bash

# MonsTerm remote version
# This script is used to push key-value pairs to openkeyval.org cloud
# which will be used by the android app to as input etc.

cells_array="[\
{\"x\" : \"0\", \"y\" : \"0\" },\
{\"x\" : \"1\", \"y\" : \"2\" },\
{\"x\" : \"3\", \"y\" : \"7\" },\
{\"x\" : \"7\", \"y\" : \"1\" },\
{\"x\" : \"4\", \"y\" : \"2\" },\
{\"x\" : \"2\", \"y\" : \"0\" },\
{\"x\" : \"0\", \"y\" : \"3\" },\
{\"x\" : \"5\", \"y\" : \"3\" }\
]"
echo $cells_array

# Store a JSON array of 8 cell locations to the cloud
curl -d "monsterm_initcells=${cells_array}" http://api.openkeyval.org/

